package com.kingdee.pda.ui.check_order;

import android.content.Context;
import android.content.Intent;
import android.text.TextUtils;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;

import com.kingdee.pda.R;
import com.kingdee.pda.adapter.AbsBaseAdapter;
import com.kingdee.pda.entity.CheckOrderListBean;
import com.kingdee.pda.entity.OrderSubmitBean;
import com.kingdee.pda.util.ViewHolder;

public class SubmitOrderListAdapter extends AbsBaseAdapter<OrderSubmitBean.Invdetail> {

    public SubmitOrderListAdapter(Context context) {
        super(context);
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {


        if (convertView == null) {
            convertView = inflater.inflate(R.layout.adapter_item_submit_order_list, parent, false);
        }

        TextView warehouse_code = ViewHolder.get(convertView, R.id.warehouse_code);
        TextView sku_code = ViewHolder.get(convertView, R.id.sku_code);
        TextView item_bar_code = ViewHolder.get(convertView, R.id.item_bar_code);
        TextView check_num = ViewHolder.get(convertView, R.id.check_num);
        TextView  owner = ViewHolder.get(convertView, R.id.owner);
        TextView  inv_status = ViewHolder.get(convertView, R.id.inv_status);

        OrderSubmitBean.Invdetail orderData = getData().get(position);

        warehouse_code.setText(orderData.warehouseid);
        sku_code.setText(orderData.skuCode);
        item_bar_code.setText(orderData.itembarcode);
        check_num.setText(orderData.invnumber);
        owner.setText(orderData.owner);
        inv_status.setText(orderData.invstatus);

        return convertView;
    }
}
